package thinkingJava.chapter15;

import java.util.ArrayList;
import java.util.List;

public class GenericsAndCovariants {

	public static void main(String[] args) {
		List<? extends Fruit> list = new ArrayList<Apple>();
//		list.add(new Apple());
		list.add(null);
		Fruit f = list.get(0);
		System.out.println(f);
	}
}
